import App from './App'
import Vue from 'vue'
// vuex
import store from './store'
import uView from '@/uni_modules/uview-ui'
import { reqAll, reqGet, reqJsonPost, reqPost, reqUpLoad, reqPostParms } from './common/http.request.js'

// 导入并挂载全局的分享方法
import share from '@/common/share.js'

//引入全局自定义mixin，主要用于在template内代码使用方法
import mixinsHelper from "@/common/mixins/mixinsHelper.js"

Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$reqAll = reqAll
Vue.prototype.$reqGet = reqGet
Vue.prototype.$reqPost = reqPost
Vue.prototype.$reqJsonPost = reqJsonPost
Vue.prototype.$reqPostParms = reqPostParms
Vue.prototype.$reqUpLoad = reqUpLoad
Vue.prototype.$store = store
Vue.mixin(mixinsHelper)
Vue.mixin(share)
Vue.use(uView)
const app = new Vue({
	store,
	...App
})
app.$mount()
